/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Engine2D.item.resource;

import Engine2D.entity.Player;
import Engine2D.graphics.GLSpriteSheet;
import Engine2D.level.Level;
import Engine2D.level.tile.Tile;

/**
 *
 * @author Garys
 */
public class Resource {

    /**
     * 
     */
    public final String name;

    /**
     * 
     * @return
     */
    public String getName() {
        return name;
    }
    /**
     * 
     */
    public final GLSpriteSheet spriteSheet;
    private float u, v;

    /**
     * 
     * @return
     */
    public float getU() {
        return u;
    }

    /**
     * 
     * @param u
     */
    public void setU(float u) {
        this.u = u;
    }

    /**
     * 
     * @return
     */
    public float getV() {
        return v;
    }

    /**
     * 
     * @param v
     */
    public void setV(float v) {
        this.v = v;
    }
    
    /**
     * 
     * @param name
     * @param spriteSheet
     * @param u
     * @param v
     */
    public Resource(String name, GLSpriteSheet spriteSheet, float u, float v) {
        this.spriteSheet = spriteSheet;
        this.name = name;
        this.u = u;
        this.v = v;
    }

    /**
     * 
     * @param tile
     * @param level
     * @param xt
     * @param yt
     * @param player
     * @param attackDir
     * @return
     */
    public boolean interactOn(Tile tile, Level level, int xt, int yt, Player player, int attackDir) {
        return false;
    }
}
